package service

import (
	"jtvss/api/system/model"
	"jtvss/pkg/orm"
)

func SysPostCheckAdd(req *model.Post) error {
	var post model.Post
	if err := orm.DbFirstBy(&post, "name like ?", req.Name); err != nil {
		return err
	}
	return nil
}
